package com.yan.utils;

import com.alibaba.fastjson.JSON;

/**
 * Created by yanl_ on 2018/2/7.
 */
public class ResultResponse {

    private String responseCode;//
    private String responseMsg;//
    private Object obj;//


    public String getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(String responseCode) {
        this.responseCode = responseCode;
    }

    public String getResponseMsg() {
        return responseMsg;
    }

    public void setResponseMsg(String responseMsg) {
        this.responseMsg = responseMsg;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    @Override
    public String toString() {
        return "ResultRepose{" +
                "responseCode='" + responseCode + '\'' +
                ", responseMsg='" + responseMsg + '\'' +
                ", obj=" + obj +
                '}';
    }


    public static void main(String[] args) {
        ResultResponse resultResponse = new ResultResponse();
        resultResponse.setResponseCode("1000")
        ;
        resultResponse.setResponseMsg("Fial");
        resultResponse.setObj("test");

        System.out.println(JSON.toJSON(resultResponse));
    }
}
